//
//  BEUCImageExtension.swift
//  BasicExtensions
//
//  Created by JY_NEW on 2022/8/31.
//

import UICreate

extension UCSetting where TargetType: UIImageView {
    ///图片
    public static func image(_ named: String, by processing: UIImage.BEProcessing...) -> Self {
        return .image(UIImage(named: named)?.by(batch: processing))
    }
}
extension UCSetting where TargetType: UIButton {
    ///图片
    public static func image(_ named: String, by processing: UIImage.BEProcessing..., for state: UIControl.State = .normal) -> Self {
        return .image(UIImage(named: named)?.by(batch: processing), for: state)
    }
    ///图片
    public static func bg(_ named: String, by processing: UIImage.BEProcessing..., for state: UIControl.State = .normal) -> Self {
        return .bg(UIImage(named: named)?.by(batch: processing), for: state)
    }
}

